<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<a href="https://www.baidu.com">链接</a>
<script>


    // window.addEventListener('load', function () {
    //     alert(22);
    // })
    window.addEventListener('pageshow', function () {
        alert(22);
    })

    // PC -> 1   移动端 -> 2
    console.log(window.devicePixelRatio)

</script>
</body>
</html>
